package com.zx.zxapiorder.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zx.zxapiorder.model.entity.ApiOrderLock;
import com.zx.zxapiorder.service.ApiOrderLockService;
import com.zx.zxapiorder.mapper.ApiOrderLockMapper;
import org.springframework.stereotype.Service;

/**
 * @author Bro
 * @description 针对表【order_lock】的数据库操作Service实现
 * @createDate 2023-07-27 09:41:48
 */
@Service
public class ApiOrderLockServiceImpl extends ServiceImpl<ApiOrderLockMapper, ApiOrderLock>
        implements ApiOrderLockService {

    @Override
    public void orderPaySuccess(String orderSn) {
        this.update(new UpdateWrapper<ApiOrderLock>().eq("orderSn", orderSn).set("lockStatus", 2));
    }
}




